#include <scdl/parser/Symbol.hpp>

#include <cstdlib>
#include <cstring>
#include <iostream>

using std::cout;
using namespace scdl;

IdentifierList::IdentifierList()
{
}

IdentifierList::~IdentifierList()
{
}

SymbolCategory IdentifierList::getCategory()
{
        return CATEGORY_IDENTIFIER_LIST;
}

void IdentifierList::prettyPrint(bool verbose)
{
        if (verbose)
                for (int i = 0; i < size; i++) {
                        elements[i]->prettyPrint(true);
                        if (i < size - 1)
                                cout << "\n";
                }
        else
                cout << getName();
}
